#include "Material.h"
#include <stdlib.h>
Material::Material(char * name, float bounciness, float friction, bool isGrabbable, float textureSize, int textureIndex)
{
	this->name = name;
	this->bounciness = bounciness;
	this->friction = friction;
	this->textureIndex = textureIndex;
	this->textureSize = textureSize;
	this->isGrabbable = isGrabbable;
}
	
Material::Material()
{
	name = NULL;
	bounciness = 0.0;
	friction = 0.0;
	textureSize = 0.1;
	textureIndex = 0;
	isGrabbable = true;
}

Material::~Material()
{
	//if(name != NULL)
	//	free(name);
	name = NULL;
}
int Material::GetTextureIndex()
{
	return textureIndex;
}
void Material::SetTextureIndex(int index)
{
	textureIndex = index;
}
void Material::SetFriction(float friction)
{
	this->friction = friction;
}
